import type * as Term from '@/api/term/types/term'

import { request } from '@/utils/service'

export function queryProduct(data: Term.queryProductRequestData) {
  return request<Term.queryProductResponse>({
    method: 'post',
    url: '/queryProduct',
    data
  })
}

export function getProduct(data: Term.getProductRequestData) {
  return request<Term.getProductResponse>({
    method: 'post',
    url: '/getProduct',
    data
  })
}
export function queryBikeProduct(data: Term.queryBikeProductRequestData) {
  return request<Term.queryBikeProductResponse>({
    method: 'post',
    url: '/queryBikeProduct',
    data
  })
}
export function queryProductByMap(data: Term.queryProductByMapRequestData) {
  return request<Term.queryProductByMapResponse>({
    method: 'post',
    url: '/queryProductByMap',
    data
  })
}
/** 获取门店车辆租赁套餐详情 */
export function queryStoreProductDetail(data: Term.queryStoreProductDetailRequestData) {
  return request<Term.queryStoreProductDetailResponse>({
    method: 'post',
    url: '/queryStoreProductDetail',
    data
  })
}
